<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Floating Label Input</title>
    <link rel="stylesheet" href="style.css" />
</head>

<body>

    <div class="input-container">
        <input type="text" id="input" required />
        <label for="input" class="label">Enter Text</label>
        <div class="underline"></div>
    </div>

</body>

</html>